package kuanshu.mapper;

import kuanshu.bean.YongHuXinXi;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface YongHuXinXiMapper {
    // 登录
    @Select("select * from `yonghuxinxi` where yonghuming=#{yonghuming} and `denglumima`=#{denglumima}")
    YongHuXinXi denglu(YongHuXinXi yongHuXinXi);

    @Insert("INSERT INTO `yonghuxinxi` VALUES(#{yonghuming}, #{denglumima}, #{zhenshixingming}, #{xingbie}, #{shoujihaoma}, #{dianziyouxiang}, #{shenfenzhenghao}, #{chushengriqi}, #{yonghuleixing}, #{touxianglianjie}, #{zuihoudenglushijian}, #{xinyongpingfen}, #{lianxidizhi}, #{jinjilianxiren}, #{jinjilianxidianhua}, #{jiaoyuchengdu}, #{beizhuxinxi}) ")
    int add(YongHuXinXi yongHuXinXi);
}